package com.shop.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

@Data
@Component
@ConfigurationProperties(prefix = "gateway")
public class GatewayConfigProperties {

    /**
     * ip白名单
     */
    private String[] allowIps;

    /**
     * 地址白名单
     */
    private List<String> allowUrl;

    /**
     * 转发地址
     */
    private String redirectUrl;

}
